<%@page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <h1>欢迎使用图书管理系统，请登录！</h1>

    <style type="text/css">
        span{
            color: red;
            font-size: 12px;
        }
    </style>
</head>
<body>
<hr>
<form action="${pageContext.request.contextPath}/login?method=login" method="post">
    <div>
        用户名:<input type="text" name="username" size="20"><br><br>
        密码:<input type="password" name="password" size="20"><span>${errorData1}</span><br><br>
        验证码:<input type="text" name="verifyCode" size="20" placeholder="字母不区分大小写"> <img src="${pageContext.request.contextPath}/verifyCode?method=getVerifyCode" id="verifyCode" onclick="this.src='${pageContext.request.contextPath}/verifyCode?method=getVerifyCode&'+Math.random()" ><br>
        <span>${errorData2}</span><br><br>
        七天内免登录<input type="checkbox" name="loginInFree" value="free"><br><br>
        <input type="submit" value="登录"><br><br>
    </div>
</form>
<%--<a href="enroll.jsp">免费注册</a>--%>
</body>
</html>
